import java.util.Scanner;

public class Exer347 {
    public static void main(String[] args) {
        System.out.println("请输入会员号：");
        Scanner input = new Scanner(System.in);
        int id = input.nextInt();
        int sum = id % 10 + id % 100 / 10 + id % 1000 / 100 + id / 1000;
        if(id>=1000&&id<10000) {
            if (sum > 24) {
                System.out.println("恭喜您，您中奖了,奖品是彩电一台！");
            } else if (sum > 20 && sum <= 24) {
                System.out.println("恭喜您，您中奖了,奖品是电吹风一部！");
            } else if (sum > 16 && sum <= 20) {
                System.out.println("恭喜您，您中奖了,奖品是餐巾纸一包！");
            } else {
                System.out.println("下次继续努力！");
            }
        }else{
            System.out.println("您输入的会员号有误！");
        }
    }
}
